<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:f="http://java.sun.com/jsf/core">
    <h:head>
        <title>Cadastro de Vídeos</title>
    </h:head>
    <h:body>
        <p:panel style="border-color: green; border-width: 5px; background-color: #ccccff; width: 350px; position: relative; height: 200px; text-align: center;" footer="Cadastro de album">
        <h:form>
                <h:outputLabel value="Titulo" style="position: relative;"/>
                <h:inputText id="CampoTitulo" value="#{videoMB.video.titulo}" required="true" requiredMessage="Campo Obrigatorio" style="position: relative;" autocomplete="off"/>
                <br /><h:message for="CampoTitulo" style="color: red;" />
                <br /><h:outputLabel value="Descricao" style="position: relative;"/>
                <h:inputText id="CampoDescricao" value="#{videoMB.video.descricao}" required="true" requiredMessage="Campo Obrigatorio" style="position: relative;" autocomplete="off"/>
                <br /><h:commandButton value="Adicionar" action="#{videoMB.salvar}"/>
            </h:form>
        </p:panel> 
    </h:body>
</html>
